import 'dart:convert';

import 'package:grocery_app_demo/generated/json/base/json_field.dart';
import 'package:grocery_app_demo/generated/json/warehouse_list_res_entity.g.dart';

@JsonSerializable()
class WarehouseListResEntity {
  late int? provinceId;
  late int? cityId;
  late int? areaId;
  late int? villageId;
  late String? addr;
  late String whCode;
  late String whName;
  late String contact;
  late String mobile;
  late int id;

  WarehouseListResEntity();

  factory WarehouseListResEntity.fromJson(Map<String, dynamic> json) =>
      $WarehouseListResEntityFromJson(json);

  Map<String, dynamic> toJson() => $WarehouseListResEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
